package com.example.prom;

import com.alibaba.excel.EasyExcel;
import com.example.prom.listener.ExcelListener;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Test {

    public static void main(String[] args) throws IOException {
        String filePath = "F:\\desktop\\h恒彬\\供料\\转发变量20250712.xlsx";
        ExcelListener<DeviceParamExcelReadVo> excelListener = new ExcelListener<>();
        EasyExcel.read(filePath, DeviceParamExcelReadVo.class, excelListener).sheet("Sheet2").doRead();
        List<DeviceParamExcelReadVo> dataList = excelListener.getDataList();
        for (DeviceParamExcelReadVo deviceParamExcelReadVo : dataList) {
            System.out.println(deviceParamExcelReadVo.getParamName());
        }
    }
}
